/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class SafetySeat {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010080037';
    }

    get categoryName() {
        return '\u5b89\u5168\u5ea7\u6905';
    }

    getSafetyBelt(params) {
        return command({
            method: 'getSafetyBelt',
            methodId: 'pUPQZjpA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSeated(params) {
        return command({
            method: 'getSeated',
            methodId: 'ppAXNOfC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTemperature(params) {
        return command({
            method: 'getTemperature',
            methodId: 'pZguAyIr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTemperature(params) {
        return command({
            method: 'setTemperature',
            methodId: 'peH32fvU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default SafetySeat;
